const express = require('express')
const cors = require('cors')
const app = express()


app.use(cors())

app.use(express.urlencoded({ extended: false }))
app.use(express.json())


app.use('/api', require('./router/user'))
app.use('/my', require('./router/auth'))
        

app.use((req, res) => {
    res.send('该api未开发')
})

app.listen(3002, () => {
    console.log(`启动成功 http://127.0.0.1:3002`)
})